﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CarLoanSystem.Entity;

namespace CarLoanSystem
{
    public partial class frmMainPaymentEmployee : Form
    {
        private static EmployeeItem empItem;
        public frmMainPaymentEmployee()
        {
            InitializeComponent();
            this.panelPayment.Hide();
            this.panelMain.Show();
        }

        public frmMainPaymentEmployee(EmployeeItem item)
        {
            InitializeComponent();
            this.panelPayment.Hide();
            this.panelMain.Show();
            empItem = item;
        }

        private void btnPayment_Click(object sender, EventArgs e)
        {
            this.panelPayment.setEmployee(empItem);
            this.panelPayment.Show();
            this.panelMain.Hide();
        }

        private void btnMain_Click(object sender, EventArgs e)
        {
            this.panelPayment.Hide();
            this.panelMain.Show();
        }
    }
}
